<template>
	<view style="padding: 30rpx;">
		<navigator url="/pages/apiPages/logPage/logPage">
			<button>LogPrint</button>
		</navigator>
		<navigator url="/pages/apiPages/timerPage/timerPage">
			<button>setTimer</button>
		</navigator>
		<!-- <navigator url="/pages/apiPages/dataCatch/dataCatch">
			<button>dataCatch</button>
		</navigator> -->
		
			<button @click="goStoPage()">dataCatch</button>
			
			
			
		<navigator url="/pages/apiPages/refreshPage/refreshPage">
			<button>refresh</button>
		</navigator>
		<navigator url="/pages/apiPages/threeApi/threeApi">
			<button>threeApi</button>
		</navigator>
		<navigator url="/pages/apiPages/netImage/netImage">
			<button>netImage</button>
		</navigator>
		
		<navigator url="/pages/login/login">
			<button>login</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'navigator',
				Account: 'lisi',
				CID:44322
			}
		},
		onLoad(){
			uni.preloadPage({
				url:"/pages/apiPages/dataCatch/dataCatch"
			})
		},
		methods: {
			goStoPage(){
				uni.navigateTo({
					url:"/pages/apiPages/dataCatch/dataCatch",
					success() {
						console.log("navigatTo-->success");
					},fail(e) {
						console.log("navigatTo-->fail:" + JSON.stringify(e));
					},
					complete(){
						console.log("navigatTo-->complete");
					}
				})
				// uni.redirectTo({
				// 	url:"/pages/apiPages/dataCatch/dataCatch"
				// })
				// uni.switchTab({
				// 	url:"/pages/apiPages/dataCatch/dataCatch"
				// })
			}
		}
	}
</script>

<style>
	button{
		margin: 20rpx;
	}

</style>
